package com.qeng.aiwanba.util;

import android.app.Activity;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by lixy on 2017/9/26.
 */

public class ActivityManagerUtil {
    private static Map<String,Activity> activityMap = new HashMap<>();

    public static void popActivity(String tag,Activity activity){
        activityMap.put(tag, activity);
    }

    public static void pushActivity(String tag){
        if(activityMap.containsKey(tag)){
            activityMap.remove(tag);
        }
    }

    public static boolean isSubActivity(){
        return activityMap.containsKey("activity.SubActivity");
    }
}
